% TEST_ID: LANG-EXPAND-0087
% CATEGORY: stdlib/arithmetic_ops/triangle
% 测试 三角函数

function test_asin_asind_asinh()
assert(round(asin(3), 15) ==  1.570796326794897 - 1.762747174039086i)
assert(round(asin(0.5), 15) == 0.523598775598299)
% assert(round(asin(2+2i), 15) == 0.754249144698046 + 1.734324521487967i)
assert(abs(real(asin(2+2i)) - 0.754249144698046) < 1e-12 && abs(imag(asin(2+2i)) - 1.734324521487967) < 1e-12)

assert(round(asind(0.5), 15) ==30.000000000000004)
% assert(round(asind(3), 15) == 9.000000000000000e+01 - 1.009979734210524e+02i)
assert(abs(real(asind(3)) - 90.00) < 1e-12 && abs(imag(asind(3)) + 1.009979734210524e+02) < 1e-12)
% assert(round(asind(2+2i), 15) == 43.215292692550165 + 99.369475387306522i)
assert(abs(real(asind(2+2i)) - 43.215292692550165) < 1e-12 && abs(imag(asind(2+2i)) - 99.369475387306522) < 1e-12)

assert(round(asinh(3), 15) == 1.818446459232067)
% assert(round(asinh(2 + 2i), 15) ==  1.734324521487967 + 0.754249144698046i)
assert(abs(real(asinh(2+2i)) - 1.734324521487967) < 1e-12 && abs(imag(asinh(2+2i)) - 0.754249144698046) < 1e-12)